home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
prolog
/
ai.prl
/
opnprlg1.hqx
/
Open Prolog
/
Open Prolog.rsrc
/
CODE_5_macProlog.txt
< prev
next >
Wrap
Text File
|
1993-04-15
|
9KB
|
159 lines
# near model CODE resource
# entry label at 0x0000
export_263:
entry:
00000000 41FA 0032 lea.l A0, [PC + 0x32 /* 00000034 */]
00000004 302F 0004 move.w D0, [A7 + 0x4]
label00000008:
00000008 4A50 tst.w [A0]
0000000A 6710 beq +0x12 /* 0000001C */
0000000C B050 cmp.w D0, [A0]
0000000E 41E8 0004 lea.l A0, [A0 + 0x4]
00000012 66F4 bne -0xA /* 00000008 */
00000014 3028 FFFE move.w D0, [A0 - 0x2]
00000018 4EFB 001A jmp [PC + D0.w + 0x1A]
label0000001C:
0000001C 4E56 0000 link A6, 0
00000020 2D7C 0000 000C 0012 move.l [A6 + 0x12], 0xC
00000028 4E5E unlink A6
0000002A 2F57 000A move.l [A7 + 0xA], [A7]
0000002E 4FEF 000A lea.l A7, [A7 + 0xA]
00000032 4E75 rts
00000034 0007 00FA ori.b D7, 0xFA
00000038 0012 0018 ori.b [A2], 0x18
0000003C 0000 4E75 ori.b D0, 0x75 /* 'u' */
00000040 894D 4143 pack -[A4], -[A5], 0x4143
00000044 5052 addq.w [A2], 8
00000046 4F4C chk.w D7, A4
00000048 4F47 chk.w D7, D7
0000004A 0000 4E56 ori.b D0, 0x56 /* 'V' */
0000004E FFFC .extension 0xFFC // unimplemented
00000050 487A 0088 pea.l [PC + 0x88 /* 000000DA */]
00000054 4EAD 0912 jsr [A5 + 0x912]
00000058 4FEF FFFC lea.l A7, [A7 - 0x4]
0000005C A924 trap FrontWindow
0000005E 201F move.l D0, [A7]+
00000060 670A beq +0xC /* 0000006C */
00000062 2040 movea.l A0, D0
00000064 0C68 0008 006C cmpi.w [A0 + 0x6C], 0x8
0000006A 670A beq +0xC /* 00000076 */
label0000006C:
0000006C 487A 0056 pea.l [PC + 0x56 /* 000000C4 */]
00000070 4EAD 091A jsr [A5 + 0x91A]
00000074 601E bra +0x20 /* 00000094 */
label00000076:
00000076 487A 0042 pea.l [PC + 0x42 /* 000000BA */]
0000007A 4EAD 091A jsr [A5 + 0x91A]
0000007E 486E FFFC pea.l [A6 - 0x4]
00000082 4EAD 0A62 jsr [A5 + 0xA62]
00000086 4AAE FFFC tst.l [A6 - 0x4]
0000008A 6708 beq +0xA /* 00000094 */
0000008C 487A 0076 pea.l [PC + 0x76 /* 00000104 */]
00000090 4EAD 091A jsr [A5 + 0x91A]
label00000094:
00000094 0C6D 0700 FDBE cmpi.w [A5 - 0x242], 0x700
0000009A 6B08 bmi +0xA /* 000000A4 */
0000009C 487A 0016 pea.l [PC + 0x16 /* 000000B4 */]
000000A0 4EAD 091A jsr [A5 + 0x91A]
label000000A4:
000000A4 42AE 0012 clr.l [A6 + 0x12]
000000A8 4E5E unlink A6
000000AA 2F57 000A move.l [A7 + 0xA], [A7]
000000AE 4FEF 000A lea.l A7, [A7 + 0xA]
000000B2 4E75 rts
000000B4 0082 000A 0000 ori.l D2, 0xA0000 /* '\n\0\0' */
000000BA 0081 000E 0085 ori.l D1, 0xE0085
000000C0 0001 0000 ori.b D1, 0x0
000000C4 0082 0001 0082 ori.l D2, 0x10082
000000CA 0003 0082 ori.b D3, 0x82
000000CE 0004 0082 ori.b D4, 0x82
000000D2 0005 0082 ori.b D5, 0x82
000000D6 0006 0000 ori.b D6, 0x0
000000DA 0081 0001 0081 ori.l D1, 0x10081
000000E0 0002 0081 ori.b D2, 0x81
000000E4 0003 0081 ori.b D3, 0x81
000000E8 000E 0085 ori.b A6, 0x85
000000EC 0001 0085 ori.b D1, 0x85
000000F0 0003 0082 ori.b D3, 0x82
000000F4 000A 0081 ori.b A2, 0x81
000000F8 0004 0081 ori.b D4, 0x81
000000FC 0005 00AB ori.b D5, 0xAB
00000100 0001 0000 ori.b D1, 0x0
00000104 0081 0001 0081 ori.l D1, 0x10081
0000010A 0002 0085 ori.b D2, 0x85
0000010E 0003 0000 ori.b D3, 0x0
00000112 0081 0003 00AB ori.l D1, 0x300AB
00000118 0001 0000 ori.b D1, 0x0
0000011C 8E4D or.w D7, A5
0000011E 454E chk.w D2, A6
00000120 5543 subq.w D3, 2
00000122 414C chk.w D0, A4
00000124 4355 chk.w D1, [A5]
00000126 4C41 544F movem.l A6,A4,A2,D6,D3,D2,D1,D0, D1
0000012A 5220 addq.b -[A0], 1
0000012C 0000 4E56 ori.b D0, 0x56 /* 'V' */
00000130 0000 42AE ori.b D0, 0xAE
00000134 0012 41FA ori.b [A2], 0xFA
00000138 0018 202E ori.b [A0]+, 0x2E /* '.' */
0000013C 000A 4A50 ori.b A2, 0x50 /* 'P' */
// begin alternate branch 0000013E-00000140
label0000013E:
0000013E 4A50 tst.w [A0]
// end alternate branch 0000013E-00000140
label0000013E: // (misaligned)
00000140 6722 beq +0x24 /* 00000164 */
00000142 B098 cmp.l D0, [A0]+
00000144 5488 addq.l A0, 2
00000146 66F6 bne -0x8 /* 0000013E */
00000148 3028 FFFE move.w D0, [A0 - 0x2]
0000014C 4EFB 0002 jmp [PC + D0.w + 0x2]
00000150 0081 000E 0070 ori.l D1, 0xE0070
00000156 0081 0001 0058 ori.l D1, 0x10058
0000015C 0081 0002 0064 ori.l D1, 0x20064
00000162 0000 2D7C ori.b D0, 0x7C /* '|' */
// begin alternate branch 00000164-00000172
label00000164:
00000164 2D7C 0000 000E 0012 move.l [A6 + 0x12], 0xE
0000016C 2B6E 000A CE98 move.l [A5 - 0x3168], [A6 + 0xA]
// end alternate branch 00000164-00000172
label00000164: // (misaligned)
00000166 0000 000E ori.b D0, 0xE
0000016A 0012 2B6E ori.b [A2], 0x6E /* 'n' */
0000016E 000A CE98 ori.b A2, 0x98
00000172 4E5E unlink A6
00000174 2F57 000A move.l [A7 + 0xA], [A7]
00000178 4FEF 000A lea.l A7, [A7 + 0xA]
0000017C 4E75 rts
label0000017E:
0000017E 4267 clr.w -[A7]
00000180 A938 trap HiliteMenu
00000182 3F38 0220 move.w -[A7], [0x00000220 /* MemErr */]
00000186 6708 beq +0xA /* 00000190 */
00000188 487A 0040 pea.l [PC + 0x40 /* 000001CA */]
0000018C 4EAD 0CD2 jsr [A5 + 0xCD2]
label00000190:
00000190 548F addq.l A7, 2
00000192 4E5E unlink A6
00000194 2F57 000A move.l [A7 + 0xA], [A7]
00000198 4FEF 000A lea.l A7, [A7 + 0xA]
0000019C 4E75 rts
0000019E 2D7C 0000 0009 0012 move.l [A6 + 0x12], 0x9 /* '\t' */
000001A6 60D6 bra -0x28 /* 0000017E */
000001A8 4FEF FFFC lea.l A7, [A7 - 0x4]
000001AC 4EAD 0AF2 jsr [A5 + 0xAF2]
000001B0 201F move.l D0, [A7]+
000001B2 60CA bra -0x34 /* 0000017E */
000001B4 4FEF FFFC lea.l A7, [A7 - 0x4]
000001B8 4EAD 0AFA jsr [A5 + 0xAFA]
000001BC 201F move.l D0, [A7]+
000001BE 60BE bra -0x40 /* 0000017E */
000001C0 2D7C 0000 0001 0012 move.l [A6 + 0x12], 0x1
000001C8 60B4 bra -0x4A /* 0000017E */
000001CA 8A4D or.w D5, A5
000001CC 454E chk.w D2, A6
000001CE 5553 subq.w [A3], 2
000001D0 454C chk.w D2, A4
000001D2 4543 chk.w D2, D3
000001D4 5420 addq.b -[A0], 2
000001D6 0000 .incomplete